/**
 * 老板主界面路由组件
 */
 import React, { Component } from 'react'
 import { connect } from 'react-redux'
 import UserList from '../../components/userList/UserList'
 import { getUserList } from '../../redux/actions'
 class Dashen extends Component {
 
     componentDidMount(){
         this.props.getUserList('boss')
     }
     render() {
         const {userList} = this.props
         return (
             <UserList userList= {userList}/>
          
         )
     }
 }
 
 export default connect(
     state =>({userList: state.userList}),
     {getUserList}
 )(Dashen)